package com.hzj.service;

import com.hzj.pojo.BolgComment;
import com.hzj.pojo.BolgDatail;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.List;

@Component
public class BokeServiceHystrix implements BokeService {
    @Override
    public String test() {
        return "我是熔断";
    }

    @Override
    public String login(String username, String password) {
        return "我是熔断2";
    }

    @Override
    public List<BolgDatail> showAll() {
        List<BolgDatail> list = new ArrayList<>();
        BolgDatail b = new BolgDatail();
        b.setTitle("熔断");
        list.add(b);
        return list;
    }

    @Override
    public String add(BolgComment bolgComment) {
        return "我是熔断2";
    }

    @Override
    public String session() {
        return null;
    }

    @Override
    public String session1() {
        return null;
    }
}
